package org.qingke.mail.backend.controller;

import org.qingke.mail.backend.service.ItemService;
import org.qingke.mail.common.EUDataGridResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 商品控制器
 * @author JAVA
 *
 */
@RestController
@RequestMapping("/item")
public class ItemController {
	
	@Autowired
	private ItemService itemService;
     
	@RequestMapping("/list")
	public EUDataGridResult list(int page,int rows){
		return itemService.list(page, rows);
	}
	
	
}
